/*
 * @Description: 
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2020-12-09 16:04:24
 * @LastEditors: Seven
 * @LastEditTime: 2021-01-22 14:30:57
 */
export default function ({ store,redirect, $axios, app })  {
    
    // 数据访问前缀
    $axios.defaults.baseURL = 'http://39.99.200.83:12306';

    // request拦截器
    $axios.onRequest(config => {
        if(store.state.token){
            config.headers.token = store.state.token;
        }
        
        // 1pc 2小程序
        config.headers.source = '1'
    });
}